@extends('layout.master')


@section('title','控制面板')

@section('main')
<div class="row">
    <div class="col-md-12">
        <div class="portlet light">
            <div class="portlet-body">
                <form class="form-horizontal" role="form">
                    <div class="form-body">
                        <h3 class="form-section">app概览</h3>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label class="control-label col-md-3" style="font-size: larger">注册总人数 </label>
                                    <div class="col-md-9">
                                        <p class="form-control-static"> {{ \App\User::all()->count() }} </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label class="control-label col-md-3" style="font-size: larger">群总数量</label>
                                    <div class="col-md-9">
                                        <p class="form-control-static"> {{ \App\Group::where('is_dismiss', \App\Group::DISMISS_NO)->count() }} </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label class="control-label col-md-3" style="font-size: larger">用户总资产</label>
                                    <div class="col-md-9">
                                        <p class="form-control-static"> {{ App\UserAssets::CoinTotal("MEENI") }} (换算成BTC)</p>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label class="control-label col-md-3" style="font-size: larger">当日新增用户</label>
                                    <div class="col-md-9">
                                        <p class="form-control-static"> {{ App\User::Loginnum(1) }}</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</div>
@endsection